package com.guang.dubbo.shoulu.v1.framework.web;


import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Title: DispatcherServlet
 * @Author liguang
 * @Package com.guang.dubbo.shoulu.v1.framework.web
 * @Date 2024/11/5 16:33
 * @description:
 */
public class DispatcherServlet extends HttpServlet {
    @Override
    public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        // 在这里来处理请求
        try {
            new HttpServerHandler().handler(req, resp);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
